package cn.swust.classdemo.power;

public class MethodDemo {
	private String name = "Private Demo Class";
	
	public int getPublicValue(int a) {  
	    return a + 4;  
	}
	
	public int getMyPublicValue(int a) {  
	    return 8 + getPublicValue(a);  
	}
	
	
	private int getValue(int a){
		return a + 1;
	}
	
	private void printName()
	{		
		System.out.println(name);
	}
	
	private int getSelfValue(int a){
		return a + 2;
	}
	
	public int getMyValue(int a){
		return 6 + getSelfValue(a);
	}  

}
